package org.jaaksi.customviewdemo.roundview

import android.view.View

fun View.setRoundBg(block: RoundViewDelegate.() -> Unit) {
    when (this) {
        is IRoundViewDelegate -> getRoundDelegate()
        else -> RoundViewDelegate(this, null)
    }.updateParams(block)
}